function formatDeviceSign(row) {
    if(row===true)
        return '是';
    else
        return '否';
}

function formatDeviceStatus(row) {
    switch (row) {
      case 1:
        return '报警';
      case 2:
        return '报警静音';
      case 3:
        return '传感器故障';
      case 6:
        return '寿命终止';
      case 7:
        return '正常';
      case 8:
        return '预热';
      case 9:
        return '测试';
      case 10:
        return '通讯故障';
      default:
        return '未知';
    }
}

export default {
    formatDeviceSign,
    formatDeviceStatus,
  };